package priv.wangy.micro.common.po.echarts;

import lombok.Data;

/**
 * @author zhangjq
 * @since 2024-11-15
 */
@Data
public class Emphasis {

    private ItemStyle itemStyle;

    @Data
    public static class ItemStyle {

        private int shadowBlur;

        private int shadowOffsetX;

        private String shadowColor;
    }

    public static Emphasis simplePieEmphasis() {
        Emphasis emphasis = new Emphasis();
        ItemStyle itemStyle = new ItemStyle();
        itemStyle.setShadowBlur(10);
        itemStyle.setShadowOffsetX(0);
        itemStyle.setShadowColor("rgba(0, 0, 0, 0.5)");
        emphasis.setItemStyle(itemStyle);
        return emphasis;
    }
}
